# 三目运算符/三元运算符

a = 100 # 赋值变量a
b = 100 # 赋值变量b

# result = "a大于b" if a > b else "a不大于b" # 三目运算符

result = "a等于b" if a == b else ("a大于b" if a > b else "a小于b")  # 三目运算符嵌套

print(result) # 输出结果